package com.fin.zw.aiqas.controller;

import com.fin.zw.aiqas.model.request.ConverseRequest;
import com.fin.zw.aiqas.service.ConverseService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @Author: ZhangGQ
 * @Date: 2019/9/5 16:31
 */
@RestController
@RequestMapping("/converse")
@Api(value = "语音翻译存储", description = "语音翻译存储")
public class ConverseController {

    @Autowired
    private ConverseService converseService;

    @PostMapping("/converseApproval")
    @ApiOperation(value = "复议审批功能", notes = "复议审批功能")
    public ResponseEntity<Void> converseApproval(@RequestBody ConverseRequest request) {
        converseService.updateConverseRule(request);
        return ResponseEntity.ok().build();
    }

}
